const category = function(Mock){
    const getCategory = function(req, res){
        let categoryList = Mock.mock({
            "array|10": [
              {
                    "id": "@id",
                  "image": "@image('50x50', @color)",
                  "name": '@first()'
              }
            ]
          }).array
        return{
            categoryList,
            code: 200,
        }
    }

    Mock.mock('/category/getCategory', 'get', getCategory)
}

export default category